﻿<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>        
    <%@ include file="/core/memberMeta.jsp"%>
     
</head>
<body>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/theme.js"></script>
	<div class="page-heading">
		<h3>产品列表</h3>
		<ul class="breadcrumb">
			<li>产品列表</li>
			<li class="active">购物管理</li>
		</ul>
	</div>

	<section class="wrapper">
		<div class="row">
			<div class="col-sm-12">
				<section class="panel">
					<header class="panel-heading">我的订单</header>
					<div class="panel-body">
					
					
					<section id="table1" class="no-more-tables">
							<form name="showTable" method="post" action="<%=basePath%>/member/shop/ordersList.shtml">
								<table class="table table-bordered table-striped table-condensed cf">
									<thead class="cf">
										<tr>
											<th>下单时间</th>
											<th>代理商编号</th>
											
											<th>产品名称</th>
											<th>数量</th>
											<th>价格</th>
											<th>实付</th>
											
											<th>收货信息</th>
											<th>订单状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${pagination.pageList}" var="o">
											<tr>
												<td data-title="下单时间">${o.submitDate}</td>
												<td data-title="代理商编号">${o.memberLoginName}</td>
												
												<td data-title="产品名称">${o.goodsTitle}</td>
												<td data-title="数量">${o.buyNum}</td>
												<td data-title="价格">${o.goodsPrice}</td>

												<td data-title="实付">${o.payPrice}</td>
												
												<td data-title="收货信息">收货人： ${o.personName}<br/>
														电话： ${o.tel}<br/>
														地址： ${o.address}<br/></td>
												<td data-title="订单状态">
													<c:if test="${o.orderState==0}"><span style="color: red">管理员未审核</span></c:if>
													<c:if test="${o.orderState==1}">
														管理员已发货
													</c:if>
													<c:if test="${o.orderState==2}">
														驳回
													</c:if>
													<c:if test="${o.orderState==3}">
														已完成
													</c:if>

												</td>
												<td data-title="操作">
															<a href="member/shop/ordersShow.shtml?id=${o.id}" onclick="return confirm('确认收到货了吗 ？')" >
																<span style="color: red">确认收货</span>
															</a>
														<c:if test="${o.orderState==3}">
															收货时间：${o.shouDate}
														</c:if>
												</td>
											
											</tr>
										</c:forEach>
									</tbody>
								</table>
								<page:pageControl />
							</form>
						</section>
					
					
					</div>
				</section>
			</div>
		</div>
	</section>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/amazeui2.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/amazeui.datatables.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/dataTables.responsive.min.js"></script>
	<script src="<%=basePath%>/resources/memberCss2/assets/js/app.js"></script>
</body>

</html>


